Optimal. Leaf size=54 \[ -\frac{2 \sqrt{a^2-b^2 x^2}}{b (a+b x)}-\frac{\tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0140286, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {663, 217, 203} \[ -\frac{2 \sqrt{a^2-b^2 x^2}}{b (a+b x)}-\frac{\tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 663
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \frac{\sqrt{a^2-b^2 x^2}}{(a+b x)^2} \, dx &=-\frac{2 \sqrt{a^2-b^2 x^2}}{b (a+b x)}-\int \frac{1}{\sqrt{a^2-b^2 x^2}} \, dx\\ &=-\frac{2 \sqrt{a^2-b^2 x^2}}{b (a+b x)}-\operatorname{Subst}\left (\int \frac{1}{1+b^2 x^2} \, dx,x,\frac{x}{\sqrt{a^2-b^2 x^2}}\right )\\ &=-\frac{2 \sqrt{a^2-b^2 x^2}}{b (a+b x)}-\frac{\tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{b}\\ \end{align*}
Mathematica [A] time = 0.0551268, size = 51, normalized size = 0.94 \[ -\frac{\frac{2 \sqrt{a^2-b^2 x^2}}{a+b x}+\tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.049, size = 126, normalized size = 2.3 \begin{align*} -{\frac{1}{a{b}^{3}} \left ( - \left ( x+{\frac{a}{b}} \right ) ^{2}{b}^{2}+2\, \left ( x+{\frac{a}{b}} \right ) ab \right ) ^{{\frac{3}{2}}} \left ( x+{\frac{a}{b}} \right ) ^{-2}}-{\frac{1}{ab}\sqrt{- \left ( x+{\frac{a}{b}} \right ) ^{2}{b}^{2}+2\, \left ( x+{\frac{a}{b}} \right ) ab}}-{\arctan \left ({x\sqrt{{b}^{2}}{\frac{1}{\sqrt{- \left ( x+{\frac{a}{b}} \right ) ^{2}{b}^{2}+2\, \left ( x+{\frac{a}{b}} \right ) ab}}}} \right ){\frac{1}{\sqrt{{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.93435, size = 142, normalized size = 2.63 \begin{align*} -\frac{2 \,{\left (b x -{\left (b x + a\right )} \arctan \left (-\frac{a - \sqrt{-b^{2} x^{2} + a^{2}}}{b x}\right ) + a + \sqrt{-b^{2} x^{2} + a^{2}}\right )}}{b^{2} x + a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- \left (- a + b x\right ) \left (a + b x\right )}}{\left (a + b x\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]